import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/views/Home'
import addRoutes from '@/views/addRoutes'
import login from '@/views/login'
import test from '@/views/test'
import wenduji from '@/views/wenduji'
import roomlist from '@/views/roomlist'
import nhwc from '@/views/nhwc'

Vue.use(Router)
var router = new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/test',
      name: 'test',
      component: test
    },
    {
      path: '/wenduji',
      name: 'wenduji',
      component: wenduji
    },
    {
      path: '/addRoutes',
      name: 'addRoutes',
      component: addRoutes
    },
    {
      path: '/lobby',
      name: 'room_list',
      component: roomlist
    },
    {
      path: '/nhwc/:id',
      name: 'nhwc',
      component: nhwc
    }
  ]
})

export default router
